package org.dawfinn.droiditarian.reportpicupload;

import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLEncoder;

public class InternetReportPicUpload implements ReportPicUpload {
	
	private static final String REPORT_UPLOAD_PATH = "http://droiditarian.appspot.com/"
		+ "/reportpic";

	
	public void reportDeedLocationPic(String locKey) throws IOException {
		try {
			URL url = new URL(REPORT_UPLOAD_PATH
					+ "?id=" + URLEncoder.encode(locKey, "UTF-8"));
			
			url.openStream();
		} catch (MalformedURLException e) {
			e.printStackTrace();
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		} 
	}

}
